<?php

abstract class H_Controller_Cms_ActionExtent extends H_Controller_Cms_Action
{
    protected $entityOb;
    protected $cateOb;
    protected $entity_cateOb;
 
    protected abstract function getProperties();
    protected abstract function getPropertiesOrderList();

    public function getCateAction(){
        $lg = $this->_request->getParam('lg');
        $id = $this->_request->getParam('id',-1);
        $showfor = $this->_request->getParam(H_Description::SHOW_FOR);
        if ($showfor == H_Description::ENTITY){
            $catArray = $this->entity_cateOb->getCate_by_Entity($id);//is Cate of Entity;
            $this->view->catString = implode(":", $catArray);
        }else{//Show for categories
            $this->view->catString = $this->cateOb->getParentId($id);
        }

        $this->view->lable = $this->_request->getParam('lable');
        $data = $this->cateOb->getCateTree($lg);
        $this->view->data = $data;

        $para = $this->_request->getParams();
        
        $showtype = $this->_request->getParam(H_Description::CATE_SHOW_TYPE);        
        $this->view->showtype = $showtype;

        $this->view->currentId = $id;
        $this->view->showfor = $showfor;
    }
    public function  postDispatch() {
        parent::postDispatch();
        $this->view->properties = $this->getProperties();
    }
     
}

?>